package bird.queue.linkedlist_queue;

import bird.queue.linkedlist_queue.LinkedListQueue;

/**
 * @author sijunqiang
 * @data 2021/5/28 21:58
 * @description: 测试基于链表实现的队列
 */
public class MainLinkedListQueue {

    public static void main(String[] args) {
        LinkedListQueue<Integer> linkedListQueue = new LinkedListQueue<>();
        // Test enqueue
        for (int i = 0; i < 10; i++) {
            linkedListQueue.enqueue(i);
            System.out.println(linkedListQueue);

            if(i % 3 == 2){
                linkedListQueue.dequeue();
                System.out.println(linkedListQueue);
            }
        }


    }

}
